<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Flight Simurator</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Style-Type" content="text/css">
		<style type="text/css">
		<!--
			html, body, #map {
				margin: 0;
				padding: 0;
				width: 100%;
				height: 100%;
			}
		-->
		</style>
		<script type="text/javascript" src="http://www.google.com/jsapi"></script>
		<script type="text/javascript">
		//<![CDATA[
			google.load("maps", "3", {'other_params': 'sensor=false'});

			var map, marker;
			function init() {
				var options = {
					zoom: 12,
					center: new google.maps.LatLng(34.718916, 135.268457),
					disableDefaultUI: true,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				map = new google.maps.Map(document.getElementById('map'), options);
			}

			function updateLocation(s) {
				if(marker)
					marker.setMap(null);
				var location = new Array();
				var str = s.split(' ')
				for(var f in str) {
					location.push(parseFloat(str[f]));
				}
				var center = new google.maps.LatLng(location[0], location[1]);
				map.setCenter(center);
				var options = {
					position: center,
					map: map
				};
				marker = new google.maps.Marker(options);
			}
		//]]>
		</script>
	</head>
	<body onload="init()">
		<div id="map"></div>
	</body>
</html>
